package com.stedu.service;

import com.stedu.bean.Student;
import com.stedu.exception.SteduException;

import java.util.List;

public interface StudentService {
    //分页查询,根据sname查询
    List<Student> selectBySname(String sname,String sgender);
    //增
    boolean insert(Student s) throws SteduException;
    //删
    boolean delete(Integer sid) throws SteduException;
    //改
    boolean update(Student e) throws SteduException;
    //查所有
    List<Student> selectAll();
    //根据id查询
    Student selectBySid(Integer sid);
}
